tricks to solving exponential equation